package com.llb666.shop.items.infrastructure.conver;

import com.llb666.shop.items.domain.entity.ItemsImg;
import com.llb666.shop.items.infrastructure.po.ItemsImgPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品图片类型转换器 po -- entity
 *
 * @author llb666
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsImgCvt {
    ItemsImgCvt INSTANCE = Mappers.getMapper(ItemsImgCvt.class);

    ItemsImgPo do2po(ItemsImg itemsImg);

    ItemsImg po2do(ItemsImgPo itemsImgPo);

    List<ItemsImg> po2doList(List<ItemsImgPo> itemsImgPoList);
}
